package com.sghd.football.module.game.service.thread;

import com.sghd.football.module.game.service.core.Desk;

import java.util.Date;

public interface Work {

	void addTimer(Desk desk, Task runner, Date time);
	void addTimer(Desk desk, Task runner, Date time, int type);
	
	void addTimer(TaskItem work);

	/** 立即执行*/
	void submit(Desk desk, Task task);
	/** 立即执行*/
	void submit(int id, Runnable runnable);
	/** 匹配线程执行*/
	void submit(Runnable runnable);
}
